<% layout('layout') %>

<!-- Navigation -->
<nav class="navbar navbar navbar-fixed-top navbar-inverse" role="navigation">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div style="margin-left: 50px;">
                <img class="pull-left" width="50px" src="/images/logo.png" alt="logo">
                <a style="margin-left: 5px;" class="navbar-brand" href="/"> NodeVulnerable</a>
            </div>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse pull-right" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li>
                    <form class="form-inline" style="padding-top: 8px;" method="GET" action="/products/search">
                        <div class="form-group">
                            <div class="input-group">
                                <input type="text" class="form-control" name="q" placeholder="Search in products...">
                                <span class="input-group-addon" id="start-date"><span class="glyphicon glyphicon-search"></span></span>
                            </div>
                        </div>
                    </form>
                </li>
                <li>
                    <a href="/">Products</a>
                </li>
                <li>
                    <a href="/products/purchased">My products</a>
                </li>
                <li>
                    <a href="/logout">Logout</a>
                </li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>

<!-- Page Content -->
<div class="container">

    <!-- /.row -->
    <%-body%>
</div>
<!-- /.container -->